home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 January: Mac OS SDK / Dev.CD Jan 00 SDK1.toast / Development Kits / Mac OS / Multiprocessing 2.0 SDK / Sample Code / SortPictsMP ƒ / Sprocket / Interfaces / AppleEventHandling.h next >
Encoding:
C/C++ Source or Header  |  1999-08-03  |  1.9 KB  |  59 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        AppleEventHandling.h
  3.  
  4.     Contains:    Minimalist support for the required and Display Manager suites
  5.                 To really support AppleScript™, we’ll do more work in here.
  6.  
  7.     Written by: Dave Falkenburg
  8.  
  9.     Copyright:    © 1993-1994 by Dave Falkenburg, all rights reserved.
  10.  
  11.     Change History (most recent first):     
  12.  
  13.          <5>    11/16/94    DRF        Add StandardAEIdleProc for people who like using AESend with
  14.                                     kAEWaitReply.
  15.          <4>    11/12/94    DRF        AppConditionals.h -> BuildConditionals.h
  16.          <2>      9/4/94    DRF        Added Text Services AppleEvent handlers.
  17.  */
  18.  
  19. #ifndef        _APPLEEVENTHANDLING_
  20. #define        _APPLEEVENTHANDLING_
  21.  
  22. #ifndef        __APPLEEVENTS__
  23. #include    <AppleEvents.h>
  24. #endif
  25.  
  26. #ifndef        __OCESTANDARDMAIL__
  27. #include    <OCEStandardMail.h>
  28. #endif
  29.  
  30. void                InstallAppleEventHandlers(void);
  31. OSErr                CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
  32. extern AEIdleUPP    StandardAEIdleUPP;
  33.  
  34. //    Handlers for the Required Suite:
  35.  
  36. typedef OSErr        (*EachDocumentProcPtr)(LetterDescriptor *aFile,void * param);
  37. OSErr                ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
  38.  
  39. pascal OSErr        HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  40. pascal OSErr        HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  41. pascal OSErr        HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  42. pascal OSErr        HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
  43.  
  44. //    Display Manager:
  45.  
  46. pascal OSErr    HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  47.  
  48. #if    qInlineInputAware
  49.  
  50. //    Text Services Manager:
  51.  
  52. pascal OSErr    HandleTextServicesUpdateActiveInputArea(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  53. pascal OSErr    HandleTextServicesPos2Offset(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  54. pascal OSErr    HandleTextServicesOffset2Pos(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
  55.  
  56. #endif
  57.  
  58. #endif
  59.